import request from "@/utils/request";
export function getAssistListByHelp(helpId) {
    return request({
        url: "/assist/byHelp/" + helpId,
        method: "get",
        headers: {
            isToken: true
        }
    })
}
export function getAssistList(params) {
    return request({
        url: "/assist/byAssistant",
        method: "get",
        headers: {
            isToken: true
        },
        params: params
    })
}
export function deleteAssistById(assistId) {
    return request({
        url: "/assist/" + assistId,
        method: "delete",
        headers: {
            isToken: true
        }
    })
}
export function addAssist(helpId) {
    return request({
        url: "/assist/" + helpId,
        method: "post",
        headers: {
            isToken: true
        }

    })

}
export function getAssistDetail(assistId) {
    return request({
        url: "/assist/detail/" + assistId,
        method: "get",
        headers: {
            isToken: true
        }
    })
}
export function finishAssist(data) {
    return request({
        url: "/assist/finish",
        method: "put",
        headers: {
            isToken: true
        },
        data: data
    })
}
export function verifyAssist(data) {
    return request({
        url: "/assist/verify",
        method: "put",
        headers: {
            isToken: true
        },
        data: data
    })

}